package com.ls.smartcampus2.service;

import com.ls.smartcampus2.mapper.CourseMapper;
import com.ls.smartcampus2.pojo.Course;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CourseServiceImpl implements CourseService {
    @Autowired
    private CourseMapper courseMapper;
    @Override
    public List<Course> getOneCourse(String sid) {
        return courseMapper.getOneCourse(sid);
    }

    @Override
    public List<Course> getDoubleCourse(String sid) {
        return courseMapper.getDoubleCourse(sid);
    }

    @Override
    public List<Course> getCourseByDay(String sid, String day) {
        return courseMapper.getCourseByDay(sid,day);
    }


}
